<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.prime.com.tr/ui">

    <h:head>
        <title>Satın Almacı İhaleleri Görüntüleme Sayfası</title>
        <link href="../style.css" rel="stylesheet" type="text/css"></link>
        <div style="text-align: center;height:139px;background-color: #2D99FF"></div>

    </h:head>
    <h:body>
        
            <div id="wrapper">
                <div id="logo">

                </div>
                <div id="header">
                    <!-- 		<div id="menu">
                    
                            </div>    -->
                </div>
                <div class="page">
                    <div id="page-bgtop">

                        <div id="dummy"></div>
                        <p:panel id="panelsidebar" header="Pages Menu">
                            <ui:include src="MenuSatinAlmaci.xhtml"/>
                        </p:panel>

                        <!-- end #sidebar -->
<h:form prependId="false">
                        <div id="content">
                            <p:panel header="İhaleleri Görüntüle">
                                <p:dataTable id="datatable" var="ihale" value="#{satinalmacibean.listeIhale}" paginator="true" rows="10"  
                                             selection="#{satinalmacibean.secilenIhaleToGoruntule}" selectionMode="single"  
                                             onRowSelectUpdate="display">  

                                    <f:facet name="header">  
                                        House List 
                                    </f:facet>  

                                    <p:column sortBy="#{ihale.ad}" filterBy="#{ihale.ad}">  
                                        <f:facet name="header">  
                                            <h:outputText value="Adı" />  
                                        </f:facet>  
                                        <h:outputText value="#{ihale.ad}" />  
                                    </p:column>  

                                    <p:column sortBy="#{ihale.baslamaTarihi}" filterBy="#{ihale.baslamaTarihi}">  
                                        <f:facet name="header">  
                                            <h:outputText value="Başlangıç Tarihi" />  
                                        </f:facet>  
                                        <h:outputText value="#{ihale.baslamaTarihi}" >
                                            <f:convertDateTime pattern="dd.MM.yyyy" type="date"/>
                                        </h:outputText>
                                    </p:column> 
                                    
                                    <p:column sortBy="#{ihale.baslangicSaati}" filterBy="#{ihale.baslangicSaati}">  
                                        <f:facet name="header">  
                                            <h:outputText value="Başlangıç Saati" />  
                                        </f:facet>  
                                        <h:outputText value="#{ihale.baslangicSaati}" >
                                            <f:convertDateTime pattern="HH:mm" type="time"/>
                                        </h:outputText>
                                    </p:column>

                                    <p:column sortBy="#{ihale.bitisTarihi}" filterBy="#{ihale.bitisTarihi}">  
                                        <f:facet name="header">  
                                            <h:outputText value="Bitiş Tarihi" />  
                                        </f:facet>  
                                        <h:outputText value="#{ihale.bitisTarihi}" >
                                            <f:convertDateTime pattern="dd.MM.yyyy" type="date" />
                                        </h:outputText>
                                    </p:column>  

                                    <p:column sortBy="#{ihale.bitisSaati}" filterBy="#{ihale.bitisSaati}">  
                                        <f:facet name="header">  
                                            <h:outputText value="Bitiş Saati" />  
                                        </f:facet>  
                                        <h:outputText value="#{ihale.bitisSaati}" >
                                            <f:convertDateTime pattern="HH:mm" type="time"/>
                                        </h:outputText>
                                    </p:column> 
                                    
                                    
                                 
                                    <p:column sortBy="#{ihale.donmaDurumu}" filterBy="#{ihale.donmaDurumu}">
                                        <f:facet name="header">
                                            <h:outputText value="İhale Durumu" />
                                        </f:facet>
                                        <h:outputText value="#{ihale.donmaDurumu}" />
                                    </p:column>


                                    
                                    
                                    <p:column style="width:32px" >
                                        <f:facet name="header">  
                                            <h:outputText value="Detaylar" />  
                                        </f:facet>  
                                        <p:commandButton ajax="false" action="#{satinalmacibean.satinAlmaciIhaleDetay()}"  
                                                         image="ui-icon ui-icon-arrowrefresh-1-w">  
                                            <f:setPropertyActionListener value="#{ihale}"  
                                                                         target="#{satinalmacibean.secilenIhaleToGoruntule}" />  
                                        </p:commandButton>  
                                    </p:column> 
                                     <p:column style="width:32px" >
                                        <f:facet name="header">  
                                            <h:outputText value="Teklifler" />  
                                        </f:facet>  
                                        <p:commandButton ajax="false" action="#{satinalmacibean.satinAlmaciTeklifleriGoruntule()}"  
                                                         image="ui-icon ui-icon-arrowrefresh-1-w">  
                                            <f:setPropertyActionListener value="#{ihale}"  
                                                                         target="#{satinalmacibean.secilenIhaleToGoruntule}" />  
                                        </p:commandButton>  
                                    </p:column>  


                                </p:dataTable>  
                            </p:panel> 

                        </div>
                        <!-- end #content -->
</h:form>
                        <div style="clear: both;">&nbsp;</div>
                    </div>

                    <!-- end #page -->

                </div>
                <div id="footer-bgcontent">
                    <div id="footer" align="center">
                        <p>İHALE YÖNETİM SİSTEMİ - 2011</p>
                    </div>
                </div>
                <!-- end #footer -->
            </div>

        
    </h:body>
</html>